package org.j4me.info;

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import org.j4me.ui.DeviceScreen;
import org.j4me.ui.UIManager;

public class InfoMidlet extends MIDlet {
	
	
	private DeviceScreen _pauseScreen;

	public InfoMidlet() {
		UIManager.init(this);
	
	}
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
		
	}

	protected void pauseApp() {
		_pauseScreen = UIManager.getScreen();
	}

	protected void startApp() throws MIDletStateChangeException {
		if(_pauseScreen == null)
		{
			DeviceDescriptionScreen sc = new DeviceDescriptionScreen(this);
			sc.show();
		}
		else
			_pauseScreen.show();
	}
	
	
	
}
